<template>
  <div>
      this is  test2
      <div>
          <button @click="pushPage"> 提交</button>
      </div>
  </div>
</template>

<script setup lang="ts">
import  {defineEmits,defineProps}  from 'vue'
import {defineExpose} from "vue/dist/vue";
const emit = defineEmits(['success'])
const props = defineProps({
    pageData:{
        type:Object,
        default:{}
    }
})
const  getPage = ()=>{
    console.log(props.pageData)
    console.log('this is test2 components')
}
const  pushPage = ()=>{
    emit('success','Test2 push ')
}
getPage()
defineExpose({getPage})
</script>

<style scoped>

</style>